<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a="http://richfaces.org/a4j">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
<style type="text/css">
	.fontStyle {
		 font-family: "宋体";
		 font-size:15px;
	}
</style>
</head>                 
   
<body>
	
	<h:messages globalOnly="true" styleClass="message"/>
	<rich:panel>  
		<div class = "fontStyle">
		<f:facet name="header">添加商品属性值</f:facet>              
      <h:form id="atrribute" enctype="multipart/form-data">
      	<table>
          	<tr>
	          	<td>现有商品属性</td>				
				<td>
					<h:selectOneMenu id="attribute" value="#{addAttributeValue.currentAttribute}">
						<s:selectItems value="#{attributes}" var="attribute"
							label="#{attribute.attributeName}" />
					    <s:convertEntity/>			
					</h:selectOneMenu>	
				</td>	
			</tr>
			<tr>
		         <td>属性值<em>*</em></td>					
				 <td>
				 	<h:inputText id="value" value="#{newValue.valueName}" required="true" />
				 </td>						
		    </tr>
			<tr>
              	<td>属性值描述<em>*</em>	</td>	
				<td>
					<h:inputText id="description" value="#{newValue.description}" required="true" />
				</td>						
            </tr>
	        <tr>   			  
	          	<td>	
	          		<br />
	          		<h:commandButton id="addAttribute" value="添加新属性值" 
	                           action="#{addAttributeValue.addAttributeValue}"/> 
	             </td>              
	         </tr>                   
	     </table>
      </h:form> 
      </div>  
    </rich:panel> 
      
</body>
</html>

